/**
 * 用户列表
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetUserList(data, callback, loading) {
    var url = $.domain + "/User/doGetUserList";
    sApi(url, data, callback, loading);
}

/**
 * 获取添加用户表单
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetAddUserForm(callback, loading) {
    var url = $.domain + "/User/doGetAddUserForm";
    sApi(url, {}, callback, loading);
}

/**
 * 获取编辑用户表单
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetEditUserForm(id, callback, loading) {
    var data = {
        "id": id
    }
    var url = $.domain + "/User/doGetEditUserForm";
    sApi(url, data, callback, loading);
}

/**
 * 添加用户
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doAddUser(data, callback, loading) {
    var url = $.domain + "/User/doAddUser";
    sApi(url, data, callback, loading);
}

/**
 * 编辑用户
 * @param {type} id
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doEditUser(id, data, callback, loading) {
    data.id = id;
    var url = $.domain + "/User/doEditUser";
    sApi(url, data, callback, loading);
}

/**
 * 删除用户
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doDelUser(id, callback, loading) {
    var data = {
        "id": id
    };
    var url = $.domain + "/User/doDelUser";
    sApi(url, data, callback, loading);
}